import 'package:json_annotation/json_annotation.dart';

@JsonSerializable()
class User {
  late int id;
  late String name;
  late String username;
  late String email;
  late UserAddress address;
  late String phone;
  late String website;
  late UserCompany company;
}

@JsonSerializable()
class UserAddress {
  late String street;
  late String suite;
  late String city;
  late String zipcode;
  late UserAddressGeo geo;
}

@JsonSerializable()
class UserAddressGeo {
  late String lat;
  late String lng;
}

@JsonSerializable()
class UserCompany {
  late String name;
  late String catchPhrase;
  late String bs;
}
